/* 
公共请求方法
*/
import base from '@/api/base'
import axios from '@/utils/request'

const api = {
    /* 
        热门城市
    */
    getHotCitys() {
        return axios.get(base.hotCity);
    },
    /* 
     搜索接口
    */
    getSearch(params) {//params={keyword:xx}
        return axios.get(base.searchUrl, {
            params
        })
    },
    /* 
      今日推荐
    */
    getTuijian() {
        return axios.get(base.tuijian)
    },
    /* 
        穷游商城
        {page:xx}
    */
   getShopList(params){
       return axios.get(base.shopUrl,{params})
   },
   /* 
    热门游记
   */
  getTravel(){
      return axios.get(base.travelUrl)
  },


}

export default api;